/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.conformPrinciple.SRP.impl;

import za.ac.cput.conformPrinciple.SRP.Person;



/**
 *
 * @author Oceanwave
 */
public class PersonImp implements Person
{
    
    String name, eyeColour, hairColour;

    public PersonImp(String name, String eyeColour, String hairColour, double weight, double height) 
    {
        this.name = name;
        this.eyeColour = eyeColour;
        this.hairColour = hairColour;
        this.weight = weight;
        this.height = height;
    }


    
    public String getEyeColour() {
        return eyeColour;
    }

    public void setEyeColour(String eyeColour) {
        this.eyeColour = eyeColour;
    }

    public String getHairColour() {
        return hairColour;
    }

    public void setHairColour(String hairColour) {
        this.hairColour = hairColour;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
    double weight, height;
    
    public double calculateBMI()
    {
           return((weight * 703)/(height * height));
    }

    @Override
    public void displayStats() 
    {
        System.out.println ("Your name is " + name + "\n" + "Your eye colour is " + eyeColour + "\n" + "Your hair colour is: " + hairColour + "\n" + "Your body mass index is: " + calculateBMI());
    }
}
